/*    */ package com.cr.framework.shiro.util;
/*    */ 
/*    */ import com.cr.framework.shiro.realm.UserRealm;
/*    */ import org.apache.shiro.SecurityUtils;
/*    */ import org.apache.shiro.mgt.RealmSecurityManager;
/*    */ 
/*    */ public class AuthorizationUtils {
/*    */   public static void clearAllCachedAuthorizationInfo() {
/* 19 */     getUserRealm().clearAllCachedAuthorizationInfo();
/*    */   }
/*    */   
/*    */   public static UserRealm getUserRealm() {
/* 27 */     RealmSecurityManager rsm = (RealmSecurityManager)SecurityUtils.getSecurityManager();
/* 28 */     return (UserRealm)rsm.getRealms().iterator().next();
/*    */   }
/*    */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-framework-4.7.0.jar!\com\cr\framework\shir\\util\AuthorizationUtils.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */